package Gui;

import javax.swing.JPanel;

public final class Controller {

	private static Controller instance;
	private Controller(){}
	
	public MainFrame mainFrame;
	
	public NavigationPanel navigation;
	public JPanel contentViewPanel;
	
	public NavigationPanel getNavigation() {
		return navigation;
	}


	public void setNavigation(NavigationPanel navigation) {
		this.navigation = navigation;
	}


	public synchronized static Controller getInstance() {
		
		if (instance == null){
			instance = new Controller();
		}
		return instance;
	}
	
	
	public MainFrame getMainFrame() {
		return mainFrame;
	}
	public void setMainFrame(MainFrame mainFrame) {
		this.mainFrame = mainFrame;
	}


	public JPanel getContentViewPanel() {
		return contentViewPanel;
	}


	public void setContentViewPanel(JPanel contentViewPanel) {
		this.contentViewPanel = contentViewPanel;
	}
	
	

}
